package com.pronosticnews.client.services;

import java.util.Collection;
import java.util.List;

import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
import com.pronosticnews.shared.model.SportDto;

import fr.ysa.services.ServiceException;
import fr.ysa.services.config.ConfigRequetesDto;

@RemoteServiceRelativePath("sportService.rpc")
public interface SportService extends RemoteService {

	Integer compter(ConfigRequetesDto config) throws ServiceException;

	SportDto modifier(SportDto obj) throws ServiceException;

	Collection<SportDto> sauvegarder(Collection<SportDto> entities) throws ServiceException;

	SportDto sauvegarder(SportDto obj) throws ServiceException;

	void supprimer(Collection<SportDto> entities) throws ServiceException;

	void supprimer(SportDto obj) throws ServiceException;

	List<SportDto> trouver(ConfigRequetesDto config) throws ServiceException;

}
